package com.docmanage.am.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.docmanage.common.annotation.Excel;
import com.docmanage.common.core.domain.BaseEntity;

/**
 * 审批对象 am_approval
 * 
 * @author docmanage
 * @date 2023-12-03
 */
public class AmApproval extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 事件id */
    @Excel(name = "事件id")
    private Long objId;

    /** 审批人id */
    @Excel(name = "审批人id")
    private Long approvalId;


    /** 审批人名称 */
    @Excel(name = "审批人")
    private String approvalName;

    /** 审批意见 */
    @Excel(name = "审批意见")
    private String approvalOpinions;

    /** 申请人 */
    @Excel(name = "申请人")
    private String applicant;

    /** 申请人id */
    @Excel(name = "申请人id")
    private Long applicantId;

    /** 审批时间（日期时间） */
    @Excel(name = "审批时间", readConverterExp = "日=期时间")
    private Date approvalTime;

    /** 审批状态  1、审批中   2、同意  3、别驳回       */
    @Excel(name = "审批状态  1、审批中   2、同意  3、别驳回      ")
    private Integer state;

    public String getApprovalName() {
        return approvalName;
    }

    public void setApprovalName(String approvalName) {
        this.approvalName = approvalName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setObjId(Long objId)
    {
        this.objId = objId;
    }

    public Long getObjId()
    {
        return objId;
    }
    public void setApprovalId(Long approvalId)
    {
        this.approvalId = approvalId;
    }

    public Long getApprovalId()
    {
        return approvalId;
    }
    public void setApprovalOpinions(String approvalOpinions)
    {
        this.approvalOpinions = approvalOpinions;
    }

    public String getApprovalOpinions()
    {
        return approvalOpinions;
    }
    public void setApplicant(String applicant)
    {
        this.applicant = applicant;
    }

    public String getApplicant()
    {
        return applicant;
    }
    public void setApplicantId(Long applicantId)
    {
        this.applicantId = applicantId;
    }

    public Long getApplicantId()
    {
        return applicantId;
    }
    public void setApprovalTime(Date approvalTime)
    {
        this.approvalTime = approvalTime;
    }

    public Date getApprovalTime()
    {
        return approvalTime;
    }
    public void setState(Integer state)
    {
        this.state = state;
    }

    public Integer getState()
    {
        return state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("objId", getObjId())
                .append("approvalId", getApprovalId())
                .append("approvalOpinions", getApprovalOpinions())
                .append("applicant", getApplicant())
                .append("applicantId", getApplicantId())
                .append("approvalTime", getApprovalTime())
                .append("state", getState())
                .append("createBy", getCreateBy())
                .append("updateBy", getUpdateBy())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
